package com.ruoyi.customer.service.impl;

import com.ruoyi.customer.domain.CustomerTag;
import com.ruoyi.customer.mapper.CustomerTagMapper;
import com.ruoyi.customer.service.ICustomerTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerTagServiceImpl implements ICustomerTagService {

    private final CustomerTagMapper customerTagMapper;

    @Autowired
    public CustomerTagServiceImpl(CustomerTagMapper customerTagMapper) {
        this.customerTagMapper = customerTagMapper;
    }

    @Override
    public List<CustomerTag> selectCustomerTagList(CustomerTag tag) {
        return customerTagMapper.selectCustomerTagList(tag);
    }

    @Override
    public CustomerTag selectCustomerTagById(Long tagId) {
        return customerTagMapper.selectCustomerTagById(tagId);
    }

    @Override
    public int insertCustomerTag(CustomerTag tag) {
        return customerTagMapper.insertCustomerTag(tag);
    }

    @Override
    public int updateCustomerTag(CustomerTag tag) {
        return customerTagMapper.updateCustomerTag(tag);
    }

    @Override
    public int deleteCustomerTagByIds(Long[] tagIds) {
        return customerTagMapper.deleteCustomerTagByIds(tagIds);
    }

    @Override
    public int deleteCustomerTagById(Long tagId) {
        return customerTagMapper.deleteCustomerTagById(tagId);
    }
}
